#import "CDKMarketv1IndexgettoolsModel.h"

@interface CDKMarketv1IndexgettoolsModel ()

@property (nonatomic, strong) NSMutableDictionary *param;

@end

@implementation CDKMarketv1IndexgettoolsModel

- (instancetype)initWithParam:(NSMutableDictionary *)param {      

      self = [super init];      

      if (self) { 
          self.param = [NSMutableDictionary dictionaryWithDictionary:param]; 
          self.isAutoShowLoading = YES; 
          self.isAutoShowBusinessErrorToast = YES; 
          self.parseCls = [CDKMarketv1IndexgettoolsItem class]; 
      } 
      return self;
}      

- (NSString *)requestUrl { 
      return KMarketv1IndexgettoolsAddress; 
}

- (YTKRequestMethod)requestMethod { 
      return YTKRequestMethodPOST;
}

- (id)requestArgument { 
      return self.param; 
}

- (void)handleDataToMarketv1Indexgettools {

    NSMutableDictionary *params = [NSMutableDictionary new];
    params[@"User-Agent"] = @"userAgent";
    params[@"type"] = @"类型，默认1";

    [[[CDKMarketv1IndexgettoolsModel alloc] initWithParam:params] startWithCompletionBlockWithSuccess:^(__kindof CDKMarketv1IndexgettoolsItem *item) {

        NSLog(@"%@",item);

    } failure:^(__kindof NSError *error) {

    }];
}


@end